package com.xuantu.learn.springbootsession3.config;

import javax.sql.DataSource;

import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.session.config.annotation.web.http.EnableSpringHttpSession;

@Profile("jdbc")
@Configuration
@EnableSpringHttpSession
public class SpringSessionJdbcConfig {

	@Bean
	public DataSource dataSource() {
		return DataSourceBuilder.create().build();
	}
	
	
	
}
